home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / PostScript OSA / PSRunner.r < prev    next >
Encoding:
Text File  |  2000-06-23  |  5.2 KB  |  252 lines

  1. #include "DS3Resources.h"
  2.  
  3. #define    SystemSevenOrLater    1
  4.  
  5. #include "Types.r"
  6. #include "SysTypes.r"
  7. #include "BalloonTypes.r"
  8.  
  9. #ifndef    qCREATOR
  10. #define    qCREATOR    'PSRu'
  11. #endif
  12.  
  13.  
  14. resource 'MENU' ( kAppleNum, "Apple" ) {
  15.     kAppleNum, textMenuProc, 0x7FFFFFFD, enabled,
  16.     apple, {
  17.         "About PostScript Runner…",    noIcon, noKey, noMark, plain;
  18.         "-",            noIcon, noKey, noMark, plain;
  19.     }
  20. };
  21.  
  22. resource 'MENU' ( kFileNum, "File" ) {
  23.     kFileNum, textMenuProc, allEnabled, enabled,
  24.     "File", {
  25.         "Open…",        noIcon, "O", noMark, plain;
  26.         "Quit",            noIcon, "Q", noMark, plain;
  27.     }
  28. };
  29.  
  30. resource 'MENU' ( kEditNum, "Edit" ) {
  31.     kEditNum, textMenuProc, 0x7FFFFFFD, disabled,
  32.     "Edit", {
  33.         "Undo",        noIcon, "Z", noMark, plain,
  34.         "-",        noIcon, noKey, noMark, plain,
  35.         "Cut",        noIcon, "X", noMark, plain,
  36.         "Copy",        noIcon, "C", noMark, plain,
  37.         "Paste",    noIcon, "V", noMark, plain,
  38.         "Clear",    noIcon, noKey, noMark, plain
  39.     }
  40. };
  41.  
  42. resource 'MENU' ( kToolsNum, "Testing" ) {
  43.     kToolsNum, textMenuProc, allEnabled, enabled,
  44.     "Testing", {
  45.         "Create PDF",        noIcon, noKey, noMark, plain,
  46.         "Read PDF",            noIcon, noKey, noMark, plain,
  47.     }
  48. };
  49.  
  50.  
  51. resource 'hmnu' ( kAppleNum, purgeable ) {
  52.     2, 0, 0, 0,
  53.     HMSkipItem {}, {
  54.         HMSkipItem {},
  55.         HMStringResItem {
  56.             128,   1,
  57.             128,   1, 
  58.               0,   0,
  59.               0,   0
  60.         }
  61.     }
  62. };
  63.  
  64. resource 'hmnu' ( kFileNum, purgeable ) {
  65.     2, 0, 0, 0,
  66.     HMSkipItem {}, {
  67.         HMStringResItem {
  68.             129,   1,
  69.             129,   2,
  70.             129,   3,
  71.             129,   4
  72.         },
  73.         HMStringResItem {
  74.             129,   5,
  75.             129,   6,
  76.               0,   0,
  77.               0,   0
  78.         },
  79.         HMStringResItem {
  80.             129,   7,
  81.             129,   8,
  82.               0,   0,
  83.               0,   0
  84.         }
  85.     }
  86. };
  87.  
  88.  
  89.  
  90. resource 'ALRT' (128, purgeable) {
  91.     {  75,  79, 198, 354 },
  92.     128, {
  93.         OK, visible, silent,
  94.         OK, visible, silent,
  95.         OK, visible, silent,
  96.         OK, visible, silent
  97.     },
  98.     alertPositionMainScreen
  99. };
  100.  
  101. resource 'DITL' ( 128, purgeable) {{
  102.     {  97, 198, 117, 270 }, Button { enabled, "OK" };
  103.     {   8,   8,  87, 271 }, StaticText { disabled,
  104.             "Tests the spead and stability of different PDF library" };
  105.     {   0,   0,   0,   0 }, HelpItem { disabled, HMScanhdlg { 1 }};
  106. }};
  107.  
  108.  
  109. resource 'hdlg' ( 128, purgeable ) {
  110.     2, 0, 4, 0, 3,
  111.     HMSkipItem {}, {
  112.         HMStringResItem {
  113.             {0, 0}, {0, 0, 0, 0},
  114.             128,   2,
  115.               0,   0,
  116.               0,   0,
  117.               0,   0,
  118.         },
  119.         HMStringResItem {
  120.             {0, 0}, {0, 0, 0, 0},
  121.               0,   0,
  122.             128,   3,
  123.               0,   0,
  124.               0,   0,
  125.         }
  126.     }
  127. };
  128.  
  129.  
  130. resource 'ALRT' (200, purgeable) {
  131.     { 100, 120, 224, 452 },
  132.     200, {
  133.         OK, visible, silent,
  134.         OK, visible, silent,
  135.         OK, visible, silent,
  136.         OK, visible, silent
  137.     },
  138.     alertPositionMainScreen
  139. };
  140.  
  141.  
  142. resource 'DITL' (200, purgeable) {{
  143.     {  92, 246, 112, 318 }, Button { enabled, "OK" };
  144.     {  11,  73,  75, 318 }, StaticText { disabled, "^0" };
  145.     {  11,  11,  43,  43 }, Icon { disabled, 0 };
  146.     {  96,  11, 112, 100 }, StaticText { disabled, "Error #^1" };
  147. }};
  148.  
  149.  
  150.  
  151. resource 'hdlg' (200, purgeable) {
  152.     2, 0, 4, 0, 3,
  153.     HMSkipItem {}, {
  154.         HMStringResItem {
  155.             {0, 0}, {0, 0, 0, 0},
  156.             200,   1,
  157.               0,   0,
  158.               0,   0,
  159.               0,   0,
  160.         },
  161.         HMStringResItem {
  162.             {0, 0}, {0, 0, 0, 0},
  163.               0,   0,
  164.             200,   2,
  165.               0,   0,
  166.               0,   0,
  167.         },
  168.         HMSkipItem {},
  169.         HMStringResItem {
  170.             {0, 0}, {0, 0, 0, 0},
  171.               0,   0,
  172.             200,   3,
  173.               0,   0,
  174.               0,   0,
  175.         }
  176.     }
  177. };
  178.  
  179.  
  180. resource 'STR#' ( 128, purgeable ) {{
  181.     "Everything you always wanted to know about libTester, but were afraid to ask",
  182.     "Click here to dismiss this informative dialog.",
  183.     "This text describes the product, its author, and why!"
  184. }};
  185.  
  186.  
  187. resource 'STR#' ( 129, purgeable ) {{
  188.     "Use this menu to select a file and to exit the program.",
  189.     "Use this menu to select a file and to exit the program. "
  190.         "This menu is unavailable now.",
  191.     "Use this menu to select a file and to exit the program. "
  192.         "This menu is unavailable until you respond to the alert box or dialog box.",
  193.     "This command is unavailable until you respond to the alert box or dialog box.",
  194.     "Use this command to select a file.",
  195.     "Use this command to select a file. Not available for some strange reason.",
  196.     "Use this command to exit the program.",
  197.     "Use this command to exit the program. Not available for some strange reason."
  198. }};
  199.  
  200.  
  201. resource 'STR#' ( 100, purgeable ) {{
  202.     "This application requires Apple events.  Please upgrade to System 7.0 or later to use.",
  203.     "An error occured initializing the AppleEvent Handlers.",
  204.     "An error occured initializing the program.",
  205.     "An error occured during Apple event processing."
  206. }};
  207.  
  208.  
  209. resource 'STR#' ( 200, purgeable ) {{
  210.     "Click here to dismiss this informative dialog.",
  211.     "This text describes the error that occured.",
  212.     "This error ID gives more specific details of the error."
  213. }};
  214.  
  215.  
  216. resource 'hfdr' ( -5696 ) {
  217.     2, 0, 0, 0, {
  218.         HMStringItem { "" }
  219.     }
  220. };
  221.  
  222.  
  223. resource 'vers' ( 1 ) {
  224.     0x01, 0x00, beta, 0x01,
  225.     verUS, "1.0b1",
  226.     "PSRunner 1.0b1"
  227. };
  228.  
  229.  
  230. resource 'BNDL' (128, "Bundle") {
  231.     qCREATOR, 0, {
  232.         'FREF', {   0, 128,  1, 129 };
  233.         'ICN#', {   0, 128,  1,   0 };
  234.     }
  235. };
  236.  
  237.  
  238. resource 'FREF' (128) { 'APPL', 0, "" };
  239. resource 'FREF' (129) {    '****', 1, "" };    /* We can have any file dropped on us! */
  240. resource 'FREF' (130) {    'fold', 2, "" };    /* Folders too! */
  241. resource 'FREF' (131) {    'disk', 3, "" };    /* Disks are good */
  242.  
  243. type qCREATOR as 'STR ';
  244. resource qCREATOR (0) { "" };
  245.  
  246. type 'Conf' {
  247.     hex longint;    /* mmCount */
  248.     hex longint;    /* thread pool size */
  249.     };
  250.  
  251. resource 'Conf' ( 128, "Application Params" ) {    4, 0 };
  252.